#!/usr/bin/env node
const log=console.log,
    {con}=require('./common.js');

async function getMethodBySpot(id){
    const sql=`select * from method where place=${id} order by rand() limit 5;`;
    let [rows]=await con.execute(sql);
    return rows[0]
}

module.exports={getMethodBySpot}